package com.szp.springbootvue.mapper;

import com.szp.springbootvue.domain.Role;
import com.szp.springbootvue.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("userMapper")
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    User selectByPrimaryKey(Integer userId);

    List<User> selectAll();

    int updateByPrimaryKey(User record);


    User selectUserByName(String s);

    List<Role> getAuthority(String s);
}